package com.ruoqing.core.dto.admin;

import com.ruoqing.core.dto.BaseResponse;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
	* @author YaoXian
	* @title: BanUserResponse
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 核心模块 - 用户黑名单dto数据传输对象
	* @date 2020-11-20 14:05
	*/
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class BanUserResponse extends BaseResponse {
		
		@XmlElement
		private BanUserDto banUserDto;
		
		@XmlElement
		private List<BanUserDto> banUserDtoList;
		
		public BanUserDto getBanUserDto() {
				return banUserDto;
		}
		
		public void setBanUserDto(BanUserDto banUserDto) {
				this.banUserDto = banUserDto;
		}
		
		public List<BanUserDto> getBanUserDtoList() {
				return banUserDtoList;
		}
		
		public void setBanUserDtoList(List<BanUserDto> banUserDtoList) {
				this.banUserDtoList = banUserDtoList;
		}
		
		public static BanUserResponse buildBanUserResponse(String status, String msg, BanUserDto userDto){
				BanUserResponse response = new BanUserResponse();
				response.setStatus(status);
				response.setMessage(msg);
				response.setBanUserDto(userDto);
				return response;
		}
		
		public static BanUserResponse buildBanUserResponse(String status,String msg,List<BanUserDto> banUserDtoList){
				BanUserResponse response = new BanUserResponse();
				response.setStatus(status);
				response.setMessage(msg);
				response.setBanUserDtoList(banUserDtoList);
				return response;
		}
		
		public static BanUserResponse buildBanUserResponse(String status,List<BanUserDto> banUserDtoList){
				BanUserResponse response = new BanUserResponse();
				response.setStatus(status);
				response.setBanUserDtoList(banUserDtoList);
				return response;
		}
		
		public static BanUserResponse buildBanUserResponse(String status, BanUserDto userDto){
				BanUserResponse response = new BanUserResponse();
				response.setStatus(status);
				response.setBanUserDto(userDto);
				return response;
		}
		
		public static BanUserResponse buildBanUserResponse(String status,String msg){
				BanUserResponse response = new BanUserResponse();
				response.setStatus(status);
				response.setMessage(msg);
				return response;
		}
}
